package com.example.clock_demo.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

@Data
public class SchedulingExportDTO {

    @ExcelProperty("序号")
    private Integer sequence;

    @ExcelProperty("班组名称")
    private String teamName;

    @ExcelProperty("班组编号")
    private String teamCode;

    @ExcelProperty("姓名")
    private String employeeName;

    @ExcelProperty("工号")
    private String employeeNumber;

    /* 用 Map 承载 1~31 天，key=当天数字，value=班次代码 */
    @ExcelIgnore
    private Map<Integer, String> dailyShifts = new HashMap<>();

    @ExcelProperty("上班地点")
    private String workLocation;

    @ExcelProperty("下班地点")
    private String offWorkLocation;

    @ExcelProperty("总工时")
    private BigDecimal totalWorkHours;
}
